-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
catch common resource schema issues in cfn validate #785
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sungkkim
approved these changes
Jun 22, 2021
Yunhao-Jiao
approved these changes
Jun 22, 2021
btw looks like one build failed |
encouraging explicit boolean values instead of defaults
Current running totals for
Script to download import boto3
for page in boto3.client('cloudformation').get_paginator('list_types').paginate(
Visibility='PUBLIC',
Type='RESOURCE',
Filters={
'Category': 'THIRD_PARTY',
},
):
for resource_type in page['TypeSummaries']:
with open(resource_type['TypeName'].replace("::", "-").lower() + '.json', 'w') as f:
print(boto3.client('cloudformation').describe_type(Arn=resource_type['TypeArn'])['Schema'], file=f) |
kddejong
pushed a commit
to kddejong/cloudformation-cli
that referenced
this pull request
Oct 24, 2022
…on#785) encouraging explicit boolean values instead of defaults
kddejong
pushed a commit
to kddejong/cloudformation-cli
that referenced
this pull request
Oct 24, 2022
…on#785) encouraging explicit boolean values instead of defaults
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
continuing #663, #668, #675, #729
how to run new validations on all existing resource provider schemas
encouraging explicit boolean values instead of defaults:
Explicitly specify value for taggable
: 314 violations out of 328 public AWS resource typesExplicitly specify value for
insertionOrder
for array:
724 violations out of 897arrays
:This would introduce significantly more
cfn validate
violations than the rest of the validations combined